package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeMaincheckconclusionMapper;
import com.dime.physical.domain.DimeMaincheckconclusion;
import com.dime.physical.service.IDimeMaincheckconclusionService;

/**
 * 主检结论Service业务层处理
 * 
 * @author Tiny
 * @date 2023-10-17
 */
@Service
public class DimeMaincheckconclusionServiceImpl implements IDimeMaincheckconclusionService 
{
    @Autowired
    private DimeMaincheckconclusionMapper dimeMaincheckconclusionMapper;

    /**
     * 查询主检结论
     * 
     * @param id 主检结论主键
     * @return 主检结论
     */
    @Override
    public DimeMaincheckconclusion selectDimeMaincheckconclusionById(String id)
    {
        return dimeMaincheckconclusionMapper.selectDimeMaincheckconclusionById(id);
    }

    /**
     * 查询主检结论列表
     * 
     * @param dimeMaincheckconclusion 主检结论
     * @return 主检结论
     */
    @Override
    public List<DimeMaincheckconclusion> selectDimeMaincheckconclusionList(DimeMaincheckconclusion dimeMaincheckconclusion)
    {
        return dimeMaincheckconclusionMapper.selectDimeMaincheckconclusionList(dimeMaincheckconclusion);
    }

    /**
     * 新增主检结论
     * 
     * @param dimeMaincheckconclusion 主检结论
     * @return 结果
     */
    @Override
    public int insertDimeMaincheckconclusion(DimeMaincheckconclusion dimeMaincheckconclusion)
    {
        dimeMaincheckconclusion.setCreateTime(DateUtils.getNowDate());
        return dimeMaincheckconclusionMapper.insertDimeMaincheckconclusion(dimeMaincheckconclusion);
    }

    /**
     * 修改主检结论
     * 
     * @param dimeMaincheckconclusion 主检结论
     * @return 结果
     */
    @Override
    public int updateDimeMaincheckconclusion(DimeMaincheckconclusion dimeMaincheckconclusion)
    {
        dimeMaincheckconclusion.setUpdateTime(DateUtils.getNowDate());
        return dimeMaincheckconclusionMapper.updateDimeMaincheckconclusion(dimeMaincheckconclusion);
    }

    /**
     * 批量删除主检结论
     * 
     * @param ids 需要删除的主检结论主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckconclusionByIds(String[] ids)
    {
        return dimeMaincheckconclusionMapper.deleteDimeMaincheckconclusionByIds(ids);
    }

    /**
     * 删除主检结论信息
     * 
     * @param id 主检结论主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckconclusionById(String id)
    {
        return dimeMaincheckconclusionMapper.deleteDimeMaincheckconclusionById(id);
    }
}
